<!DOCTYPE html>
<html lang="en">

<head>
  <meta charset="UTF-8">
  <meta http-equiv="X-UA-Compatible" content="IE=edge">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>复习5-流程控制</title>
  <style>
    #div99>span {
      display: inline-block;
      width: 6rem;
    }

    #div99 span:nth-child(2n+1) {
      background-color: #ccc;
    }

    /* 打字效果的光标特效 */
    @keyframes cur {
      0% {
        opacity: 0;
      }

      100% {
        opacity: 1;
      }
    }

    .cur {
      animation: cur 1s infinite linear;
    }
  </style>
</head>

<body>
  请输入数量:
  <input type="text" id="txtnum">
  <button id="btnfor">输出</button>
  <div id="divfor"></div>

  <div id="div99"></div>


  <hr>
  <div style="font-size: 2rem;">
    <span id="spType"></span>
    <span class="cur">|</span>
  </div>

  <script src="js/fx05.js"></script>
</body>

</html>